﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Project.MVC.Model;
using Project.MVC.Service;
namespace Project.MVC.Web.Controllers
{
    public class GioiThieuController : Controller
    {
        #region Services
        private readonly IContactServices service;

        public GioiThieuController()
            : this(new ContactServices()
            )
        {
        }

        public GioiThieuController(IContactServices iService

            )
        {
            service = iService;

        }
        #endregion


        public ActionResult Index()
        {
            var viewModel = service.GetDefault();
            return View("Index",viewModel);
        }

    }
}
